﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Workflows.Components.Entities.Documents
{
    [Serializable]
    public class Document:Entity 
    {
        private string _DocID;
        /// <summary></summary>
        public string DocID
        {
            get
            {
                return this._DocID;
            }
            set
            {
                this._DocID = value;
            }
        }

        private string _Title;
        /// <summary></summary>
        public string Title
        {
            get
            {
                return this._Title;
            }
            set
            {
                this._Title = value;
            }
        }

        private string _Content;
        /// <summary></summary>
        public string Content
        {
            get
            {
                return this._Content;
            }
            set
            {
                this._Content = value;
            }
        }

        public Document(string docID, string title, string content)
            :base(docID,new Dictionary<string, object>())
        {
            this._DocID = docID;
            this._Title = title;
            this._Content = content;
        }

        public Document(string docID, string title, string content, BagOfWords words)
            : this(docID, title, content)
        {
            this.ComparableAttributes.Add("TermList",words);
        }
    }
}
